package vn.co.thn.web.demo_app_engine.jpa;


import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

@Entity
public class Category  {
	@Id
	private String Key;
	private int Id;
	private String Name;
	private String Image_Url;
	private int Delete;
	private String Key_image;
	public String getKey_image() {
		return Key_image;
	}
	public void setKey_image(String key_image) {
		Key_image = key_image;
	}
	public int getDelete() {
		return Delete;
	}
	public void setDelete(int delete) {
		Delete = delete;
	}
	public String getKey() {
		return Key;
	}
	public void setKey(String key) {
		Key = key;
	}
	public int getId() {
		return Id;
	}
	public void setId(int id) {
		Id = id;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public String getImage_Url() {
		return Image_Url;
	}
	public void setImage_Url(String image_Url) {
		Image_Url = image_Url;
	}
	@Transient
	public void CreateKey() {
		this.Key = this.Id + "";
	}
}
